package com.fenghuajueli.lib_data.entity.db;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;

import java.io.Serializable;
import org.greenrobot.greendao.annotation.Generated;

@Entity(nameInDb = "video_collection_and_play")
public class VideoInfoEntity implements Serializable {

    private static final long serialVersionUID = 10000212126132125L;

    private int id;
    private String desc;
    private String title;
    private String img;

    @Id(autoincrement = false)
    private String vid;

    private int status;
    private String badge;
    private String pid;
    private String img_oss_id;
    private String url;
    private String create_time;

    /**
     * 是否收藏
     */
    private boolean isCollection = false;
    /**
     * 是否播放过
     */
    private boolean isPlay = false;


    @Generated(hash = 421850811)
    public VideoInfoEntity(int id, String desc, String title, String img,
            String vid, int status, String badge, String pid, String img_oss_id,
            String url, String create_time, boolean isCollection, boolean isPlay) {
        this.id = id;
        this.desc = desc;
        this.title = title;
        this.img = img;
        this.vid = vid;
        this.status = status;
        this.badge = badge;
        this.pid = pid;
        this.img_oss_id = img_oss_id;
        this.url = url;
        this.create_time = create_time;
        this.isCollection = isCollection;
        this.isPlay = isPlay;
    }
    @Generated(hash = 1794336616)
    public VideoInfoEntity() {
    }
    public int getId() {
        return this.id;
    }
    public void setId(int id) {
        this.id = id;
    }
    public String getDesc() {
        return this.desc;
    }
    public void setDesc(String desc) {
        this.desc = desc;
    }
    public String getTitle() {
        return this.title;
    }
    public void setTitle(String title) {
        this.title = title;
    }
    public String getImg() {
        return this.img;
    }
    public void setImg(String img) {
        this.img = img;
    }
    public String getVid() {
        return this.vid;
    }
    public void setVid(String vid) {
        this.vid = vid;
    }
    public int getStatus() {
        return this.status;
    }
    public void setStatus(int status) {
        this.status = status;
    }
    public String getBadge() {
        return this.badge;
    }
    public void setBadge(String badge) {
        this.badge = badge;
    }
    public String getPid() {
        return this.pid;
    }
    public void setPid(String pid) {
        this.pid = pid;
    }
    public String getImg_oss_id() {
        return this.img_oss_id;
    }
    public void setImg_oss_id(String img_oss_id) {
        this.img_oss_id = img_oss_id;
    }
    public String getUrl() {
        return this.url;
    }
    public void setUrl(String url) {
        this.url = url;
    }
    public String getCreate_time() {
        return this.create_time;
    }
    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }
    public boolean getIsCollection() {
        return this.isCollection;
    }
    public void setIsCollection(boolean isCollection) {
        this.isCollection = isCollection;
    }
    public boolean getIsPlay() {
        return this.isPlay;
    }
    public void setIsPlay(boolean isPlay) {
        this.isPlay = isPlay;
    }


}
